{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import numpy\n",
    "import cv2\n",
    "import matplotlib.pyplot as plt"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAU0AAAD8CAYAAADzEfagAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAAReUlEQVR4nO3df6zdd13H8efLbQwE4jbYlq6tbmCNm0YKqaME/hgTtSzGzgTMiJGGLKkmIxkJUTdNFBJNJFFmiLpYs0kxyJj8yJoFhVpG0D/Y1kIZLWWsyGSXNmvIfgAhmW68/eN8Lh67u93z6b3nnh/3+UhOvt/v5/v53vP5ZGevfj7f7/meb6oKSdJofmzSDZCkWWJoSlIHQ1OSOhiaktTB0JSkDoamJHUYW2gm2ZHkwSTHk9w0rveRpLWUcXxPM8lZwNeBXwYWgPuBt1XVV1f9zSRpDY1rpHklcLyq/rOq/hu4A9g5pveSpDVz9pj+7kbgkaHtBeC1z1U5ibclSZq071TVhctVGldoZomy/xeMSXYDu8f0/pLU679GqTSu0FwANg9tbwJODFeoqj3AHnCkKWl2jOuc5v3AliSXJXkBcB2wb0zvJUlrZiwjzap6Osk7gU8DZwG3V9XRcbyXJK2lsXzlqLsRTs8lTd6hqtq2XCXvCJKkDoamJHUwNCWpg6EpSR0MTUnqYGhKUgdDU5I6GJqS1MHQlKQOhqYkdTA0JamDoSlJHQxNSepgaEpSB0NTkjoYmpLUwdCUpA6GpiR1MDQlqYOhKUkdVvQ0yiQPA98DngGerqptSS4APgpcCjwM/GZVPb6yZkrSdFiNkeYbq2rr0FPcbgIOVNUW4EDblqS5MI7p+U5gb1vfC1w7hveQpIlYaWgW8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kF/t7TXbuDWNWrjSjwNvLuqLge2Aze0/1bz1MengKur6lXAVmBHku3A+4BbWh8fB65v9a8HHq+qnwZuafVmwY3AsaHteesfwBurauvQV4tW73NaVRN7Aa8DPj20fTNw8yTbtML+XAocGdp+ENjQ1jcw+D4qwN8Bb1uq3qy8gLuAX57XPgI/DnwReC2DL0Kf3cp/9JkFPg28rq2f3epl0m1fpl+bWmhcDdwNZJ7619r6MPDy08pW7XM66en5RuCRoe2FVjYvLq6qkwBteVErn+l+t2naq4F7mbM+tqnrYeAUsB/4BvBEVT3dqgz340d9bPufBF62ti3u9lfA7wM/bNsvY776B1DAZ5IcSrK7la3a53TSdwRlibL1cDl/Zvud5CXAx4F3VdV3k6W6Mqi6RNnU97GqngG2JjkP+CRw+VLV2nKm+pjk14BTVXUoyVWLxUtUncn+DXl9VZ1IchGwP8nXnqdudx8nPdJcADYPbW8CTkyoLePwaJINAG15qpXPZL+TnMMgMD9cVZ9oxXPVx0VV9QTwOQbnb89LsjjAGO7Hj/rY9v8E8NjatrTL64FfT/IwcAeDKfpfMT/9A6CqTrTlKQb/8F3JKn5OJx2a9wNb2tW7FwDXAfsm3KbVtA/Y1dZ3MTgPuFj+9nblbjvw5OLUYVplMKS8DThWVe8f2jVPfbywjTBJ8iLgTQwumNwDvKVVO72Pi31/C/DZaifGplFV3VxVm6rqUgb/r322qn6LOekfQJIXJ3np4jrwK8ARVvNzOgUnba8Bvs7g3NEfTbo9K+jHR4CTwP8w+Nfregbnfw4AD7XlBa1uGHxr4BvAV4Btk27/CP17A4NpywPA4fa6Zs76+AvAl1ofjwB/3MpfAdwHHAf+GTi3lb+wbR9v+18x6T509PUq4O5561/ry5fb6+hipqzm59Q7giSpw6Sn55I0UwxNSepgaEpSB0NTkjoYmpLUwdCUpA6GpiR1MDQlqcP/Ape3Hn2AE0niAAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "image_path = '/Users/vijendra1125/Desktop/mask_speaker_cup/dataset/Annotations/image1.png'\n",
    "image = cv2.imread(image_path)\n",
    "image.shape\n",
    "plt.imshow(image)\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "PIXEL VALUES:\n",
      " speaker 76 cup 26\n"
     ]
    }
   ],
   "source": [
    "image_gray = cv2.imread(image_path,0)\n",
    "print (\"PIXEL VALUES:\\n\", \"speaker\", image_gray[100, 150], \"\\ncup\", image_gray[150, 350])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.9"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
